ConnectionAssignRoles Method |
Adds user role assignments to a folder
Namespace: ICMeridianAPIAssembly: ICMeridianAPI (in ICMeridianAPI.dll) Version: 4.0.8.0 (4.0.8.0)
Syntaxpublic void AssignRoles(
string vaultidentifier,
string folderid,
Object usersOrGroups = null,
Object roleNames = null
)
Public Sub AssignRoles (
vaultidentifier As String,
folderid As String,
Optional usersOrGroups As Object = Nothing,
Optional roleNames As Object = Nothing
)
public:
void AssignRoles(
String^ vaultidentifier,
String^ folderid,
Object^ usersOrGroups = nullptr,
Object^ roleNames = nullptr
)
member AssignRoles :
vaultidentifier : string *
folderid : string *
?usersOrGroups : Object *
?roleNames : Object
(* Defaults:
let _usersOrGroups = defaultArg usersOrGroups null
let _roleNames = defaultArg roleNames null
*)
-> unit
Parameters
- vaultidentifier
- Type: SystemString
The vault in which role assignments are to be changed. - folderid
- Type: SystemString
Path or ID of the folder - usersOrGroups (Optional)
- Type: SystemObject
A single string or array of user or group names - roleNames (Optional)
- Type: SystemObject
A single string or array of role names
Remarks
Adding role assignments means that InheritFromParent will be set to False.
If users and roles are not specified then role assignments are cleared from the folder.
In this case InheritFromParent is not set to True anyway.
See Also